//
//  MALocationManager.h
//  BP_NewClient
//
//  Created by letv on 15/7/16.
//  Copyright (c) 2015年 normal. All rights reserved.
//  高德地图定位

#import <Foundation/Foundation.h>

#import "ReGeocodeAnnotation.h"
#import "BPRootViewController.h"
// location
typedef void(^MALocationErrorBlock)(NSDictionary *dic);
typedef void(^MALocationSuccessBlock)(AMapAddressComponent *regeoAnnotation);

// search
typedef void(^MALocationSearchPathSuccessBlock)(NSDictionary *dic);
typedef void(^MALocationSearchPathFailBlock)(NSDictionary *dic);

@interface MALocationManager : NSObject

+ (MALocationManager *)shareManager;

// 定位
- (void)MALocationRequest:(MALocationSuccessBlock)locationBlock errorLocation:(MALocationErrorBlock)errorBlock;

// 地图路线搜索
- (void)MASearchPath:(BPRootViewController *)target;


@end
